@import "reset.css";
body {
    background-color: rgba(0,0,0,0.3);
}
html{
    height: 100%;
}
.game {
    width: 300px;
    height: 420px;
    /* background-color: black; */
position: relative;
}


.score{
    width: 48px;
    height:20px;
}
.score input{
    font-size: 16px;
    width: 32px;
    text-align: center;
    color: red;
    background: none;
    border: none;
    outline: none;
    justify-content: space-around;

}
.score span{
    display: block;
    font-size: 16px;
    color: aliceblue;
    height: 20px;
    width:16px;
}
.control{
    width:100%;
    height: auto;
    flex-direction: column;
    display: none;
position: absolute;
bottom: 0;
    
}
.anniu{
    width: 100%;
    background-color:transparent;
}

.anniu div{
    height: 70px;
    width: 70px;
    /* padding: 20px; */
    background-size: cover;
}
.l-r{
    justify-content: space-between;
}
.up{
    background-image: url(../image/up.svg);
    margin-bottom: 10px;
}
.right{
    background-image: url(../image/right.svg);
    margin-right: 20px;
}
.left{
    background-image: url(../image/left.svg);
    margin-left: 20px;
}
.down{
    background-image: url(../image/down.svg);
margin-top: 20px;
}

.btn{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top:0;
    background-color:rgba(45, 45, 45, 0.5);
    z-index: 2;
    /* display: none; */
}
.btn button{
    outline: none;
    border: none;
background-size: 100% 100%;
cursor: pointer;
background: none;
position: absolute;
left: 50%;
top:50%;
}
.startBtn button{
    background-image: url(../image/start.svg);
    height:30px;
    width: 82px;
    background-repeat: no-repeat;
    margin-top: -15px;
    margin-left: -41px;
    background-size: 100% 100%;
}

.pauseBtn button{
    background-image: url(../image/play.svg);
    height: 30px;
    width: 30px;
    background-size: 100% 100%;
    margin-top: -15px;
    margin-left:-15px;

background-size: 100% 100%;
}
.pauseBtn{
    display: none;
}
#game-box{
    width: 300px;
    height: 420px;
background-color:rgba(45, 45, 45, 0.2);
position: relative;
}
.snake-head{
    background-image: url(../image/snake2.svg);
    height: 15px;
    width: 15px;
    background-size: 100% 100% ;
}
.snake-body{
    height: 15px;
    width:15px;
    background-color:green;
    border-radius: 50%;
}
.food{
    background-image: url(../image/food.svg);
    height: 15px;
    width: 15px;
    background-size: 100% 100% ;
}


@media only screen and (max-width: 414px)
{
    .control{
        display: block;
    }
}